// 指定考试、指定班级，指定科目的平均分
export const pjfExamClassByKemu = (scoreDataClass, kemuList) => {
    const len = scoreDataClass.length
    const total = scoreDataClass.reduce((num, item) => {
        const value = kemuList.reduce((v, cell) => {
            return v + item[cell]
        }, 0)
        return num + value
    }, 0)
    return (total / len).toFixed(1)
}
// 指定考试、指定科目的全体平均分
export const pjfExamByKemu = (scoreDataExam, kemuList) => {
    const len = scoreDataExam.length
    const total = scoreDataExam.reduce((num, item) => {
        const value = kemuList.reduce((v, cell) => {
            return v + item[cell]
        }, 0)
        return num + value
    }, 0)
    return (total / len).toFixed(1)
}
